.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td{
	border-top: 1px solid #f1f1f1;
}

.main{
	margin-top: 20px;
	min-height: 1000px;
}


.related-posts-horizontal {
    display: grid;
    padding: 10px 0; /* Padding trên và dưới */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Số cột tự động theo kích thước của mục */
    gap: 2px; /* Khoảng cách giữa các mục */
}


/* Đối với màn hình nhỏ hơn (di động) */
@media (max-width: 767px) {
    .related-posts-horizontal {
        grid-template-columns: repeat(2, 1fr); /* 2 cột cho các thiết bị di động */
    }
}

/* Đối với màn hình lớn hơn (máy tính) */
@media (min-width: 768px) {
    .related-posts-horizontal {
        grid-template-columns: repeat(7, 1fr); /* 7 cột cho máy tính */
    }
}

.related-post-item {
    flex: 0 0 auto;
    width: 200px;
    text-align: center;
}


.related-post-image img {
    max-width: 100%; /* Hình ảnh không vượt quá kích thước khung */
    height: auto; /* Giữ nguyên tỉ lệ hình ảnh */
}

.related-post-title {
    margin-top: 10px;
    font-size: 14px;
}



.pagination{
	margin-left: 15px!important;
}

.pagination a {
    padding: 8px 13px;
    border: 1px solid #d8d8d8;
    font-size: 15px;
    border-radius: 3px;
    color: #676767;
}

.pagination span {
    background: #2196f3;
    padding: 10px 15px;
    color: #fff;
    border-radius: 3px;
}

.navbar{
	border-bottom: 1px solid #f3f3f3;
	box-shadow: none;
}

.input-search{
	border: 1px solid #f3f3f3!important;
    text-indent: 10px!important;
    box-shadow: none!important;
    border-radius: 4px!important;
}

.search{
	margin-top: 10px;
}

.right-search{
	padding: 0;
}

.left-search{
	padding-left: 2px;
	padding-right: 0;
}

.btn-search{
	width: 100%;
    padding-right: 0;
    background: #2196f3;
    border: 1px solid #2196f3;
    border-radius: 3px 3px 3px 3px;
    height: 37px;
    color: #fff;
}


.box-item{
	padding-right: 0;
	padding-left: 5px;
}

.pd5{
	padding-left: 5px;
}


.navbar-header{
	margin-right: 40px !important;
}

.title-homepage{
	margin-top: 15px;
}

.title-homepage h1{
	font-size: 25px;
}

.box-item{
	margin-bottom: 5px;

}
.box-item img{
	position: absolute;
    margin: auto; 
    min-height: 100%;
    min-width: 100%;

    /* For the following settings we set 100%, but it can be higher if needed 
    See the answer's update */
    left: -100%;
    right: -100%;
    top: -100%;
    bottom: -100%;
}

.title-post{
     
	margin-top: 6px;
}

.img-post{

	position: relative;
	overflow: hidden;
    height: 400px;
    border-radius: 5px;
    box-shadow: 2px 2px 2px #eae8e8;
}

.title-post a{
	color: black;
	text-transform: capitalize;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-category a{
	float: left;
	padding: 5px 10px;

}

.top-download{
	margin-top: 20px;
	margin-bottom: 20px;
}

.item-top-download{
	padding: 5px 0;
	border: 1px solid #ececec;
}

.item-top-download a{
	color: #333;
}

.box-more{
	margin-top: 5px;
	margin-bottom: 20px;
}

.btn-more{
	padding: 7px;
	width: 100%;
	border-radius: 4px;
}

.main-single{
	margin-top: 40px;
}

#back-to-top {
	text-align: center;
    position: fixed;
    bottom: 5px;
    right: 7px;
    z-index: 9999;
   	width: 35px;
    height: 35px;
    line-height: 35px;
    background: #2196f3;
    color: #fff;
    border: 0;
    border-radius: 2px;
    transition: opacity .2s ease-out;
}



.btn-download{
	margin-top: 5px;
}

.btn-download a{
	padding: 10px;
	width: 30%;
	border-radius: 3px;
}

.info-image h1{
	clear: both;
	font-size: 22px;
	margin-top: 0;
}

.info-image .author{
	color:#2196f3;
}

.title-related{
}

.title-related h3{
	font-size: 22px;
}

.box-related{
	margin-top: 40px;
}

.right-single{
	padding-left: 5px;
}

table td{
	padding: 10px!important;
}

.tag-img{
	padding: 5px;
	float: left;
}

footer{
	margin-top: 15px;
	border-top: 1px solid #ececec;
	padding: 10px;
}

footer a{
	color: #333333;
}

@media screen and (max-width: 992px) {
	.img-post{
	height: 385px;
}

.navbar-collapse{
	padding-left: 0;
}
}

@media screen and (max-width: 768px) {
  .navbar-header{
	margin-right: 0px !important;
}

.navbar-toggle{
	margin-right: 0;
}

.info-image{
	padding-top: 20px;
}



.box-related{
	margin-top: 0;
}

.img-post{
	height: 350px;
}

.navbar-collapse{
	padding-left: 15px;
}

.info-image h1{
	margin-top: 20px;
}

.title-homepage h1{
	font-size: 20px;
}

.pd5{
	padding-left: 10px;
}

.right-single{
	padding-left: 15px;
}
}